import request from '../request'

// 获取热量系数
export function getHeatheatFactor(params) {
  return request({
    url: '/bs-heatheat-factor/getHeatheatFactor',
    method: 'GET',
    params
  })
}

// 获取热量分类
export function getDietCalorie(params) {
  return request({
    url: '/bs-diet-calorie-classification/getDietCalorie',
    method: 'GET',
    params
  })
}

// 热量系数分类批量更新或者保存
export function heatheatSaveOrUpdate(params) {
  return request({
    url: '/bs-heatheat-factor/batchSaveOrUpdate',
    method: 'POST',
    data: params
  })
}

// 糖尿病热量分类批量更新或者保存
export function calorieSaveOrUpdate(params) {
  return request({
    url: '/bs-diet-calorie-classification/batchSaveOrUpdate',
    method: 'POST',
    data: params
  })
}
